<?php
include_once dirname(dirname(dirname(dirname(__FILE__)))).'/np/np_http_curl.class.php';
$report_url = 'http://10.200.8.58:8081/cmsfeedback/SubCmsApi/Feedback.action';
$msgid = '2C3C0484E66349F5AA0DBEE3B4DFA605';
$siteid = '02BD585F-ABAA-41A7-A0FA-2F102AEE041E';

$xml = '<xmlresult><msgid>'.$msgid.'</msgid><siteid>'.$siteid.'</siteid><state>1</state><msg>xml import ok</msg></xmlresult>';
$data = array(
	'cmsresult'=>$xml,
);

$http_curl = new np_http_curl_class();
for ($i = 0; $i < 3; $i++) 
{
	//访问媒资注入接口
	$re = $http_curl->post($report_url,$data);
	$curl_info = $http_curl->curl_getinfo();
	$http_code = $curl_info['http_code'];
	var_dump($http_code);
	var_dump($re);
	if ($http_code != 200 && (int)$re === 1) {				
		continue;
	} else {
		break;
	}

}